package com.huang.design.creatation.builder;

public class XMBuilder extends  AbstractBuilder{


    public XMBuilder() {
        phone= new Phone();
    }

    @Override
    AbstractBuilder customCup(String cpu) {
            phone.cpu=cpu;
            return this;
    }

    @Override
    AbstractBuilder customMem(String mem) {
            phone.mem=mem;
        return this;
    }

    @Override
    AbstractBuilder customDisk(String disk) {
            phone.disk=disk;
        return this;
    }

    @Override
    AbstractBuilder customCam(String cam) {
            phone.cam=cam;
        return this;
    }

    Phone getPhone(){
        return phone;
    };

}
